package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.OtherStudentController;
import com.itheima.edu.info.manager.controller.StaffController;
import com.itheima.edu.info.manager.controller.StudentController;
import com.itheima.edu.info.manager.controller.TeacherController;

import java.util.Scanner;

public class InfoManagerEntry {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(true){
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.print("请输入您的选择: 1.学生管理  2.老师管理  3.员工管理  4.退出   ");
            String choice = scanner.next();
            switch (choice){
                case "1":
//                    System.out.println("学生管理");
                    OtherStudentController studentController = new OtherStudentController();
                    studentController.start();
                    break;
                case "2":
//                    System.out.println("老师管理");
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case "3":
//                    System.out.println("员工管理");
                    StaffController staffController = new StaffController();
                    staffController.start();
                    break;
                case "4":
                    System.out.println("退出完成，欢迎下次使用");
                    System.exit(0);
                    break;
                default:
                    System.out.println("输入有误，请重新输入");
                    break;
            }
        }
    }
}
